package com.umgsai.thread.thread14;

public class ThreadB extends Thread {

	private Service service;
	private MyObject object;
	public ThreadB(Service service, MyObject object) {
		super();
		this.service = service;
		this.object = object;
	}
	
	@Override
	public void run() {
		object.print();
	}
}